<template>
  <div>
    <h1>{{ text }}</h1>
  </div>
</template>

<script>
  export default {
    name: 'Tmp',
    data () {
      return {
        text: ''
      }
    },
    watch: {
      $route: {
        handler: function (route) {
          this.text = route.meta.title
        },
        immediate: true
      }
    }
  }
</script>
